import Vue from 'vue';
import iView from 'iview';
import _ from 'lodash';
import locale from 'iview/dist/locale/en-US'; // Change locale, check node_modules/iview/dist/locale
import util from '~/libs/util';

export default ({ app }, inject) => {
  // 测试
  inject('myInjectedFunction', string => console.log('That was easy!', string));

  // iview.js
  Vue.use(iView, {
    locale,
  });

  // util 工具库
  inject('util', util);

  // lodash
  inject('_', _);
};
